# -*- coding:utf-8 -*-
import socket
import time
import constants

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('192.168.0.15', 9100))
# sock.connect(('www.sina.com.cn', 80))
# b = bytes('0x1B')
# text = '张统玮'.encode('utf-8')
postfix = "\n\n\n\n\n"
sock.send(bytes('111111111111111'))
sock.send(postfix)
sock.send(constants.PAPER_PART_CUT)
print sock.recv(1024)
sock.close()
